//
//  CustomBtnTableViewCell.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/9.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "CustomBtnTableViewCell.h"

@implementation CustomBtnTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.LoginBtn.layer.cornerRadius=3.0;
    self.LoginBtn.clipsToBounds=YES;
    
    [self.LoginBtn addTarget:self action:@selector(loginAction:) forControlEvents:UIControlEventTouchUpInside];
    
    // Initialization code
}

-(void)loginAction:(UIButton*)btn
{
    _block(1);
}

- (IBAction)RegisterAction:(UIButton *)sender {
    
     _block(2);
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
